function [ patterns ] = get_patterns()

% getPatterns:
% Esta funcion retorna los patrones a utilizar.
% Recibe la cantidad de neuronas de entrada

load samples6.txt;
samples = samples6;
clear samples6;

indexes = randperm(length(samples));
training_quantity_patterns = round(length(samples)*1);
training_indexes = indexes(1:training_quantity_patterns);

training_patterns = zeros(length(training_indexes), length(samples(1,:))+1);
for i = 1:length(training_indexes)
    training_patterns(i,:) = horzcat(-1, samples(i,:));
end
patterns = training_patterns';

end

